home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.11 / 2002-01_-_Disc_7.11.iso / Data / items_bak.pcg / scripts / DefineButton2_280 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2001-10-11  |  779b  |  32 lines

  1. on(release){
  2.    TheCurrentitem = 0;
  3.    TopItem = 1;
  4.    GameBox_y = 224;
  5.    searchstr = "";
  6.    arGamesDBMain = arGamesDBMaster;
  7.    arGamesDBIndex = arGamesIndexMaster;
  8.    arGamesDBSlice = arGamesDBMaster;
  9.    arGamesIndexSlice = arGamesIndexMaster;
  10.    var i = 1;
  11.    while(scrollMax >= i)
  12.    {
  13.       set("menugame" + i,arGamesDBSlice[i - 1]);
  14.       set("gamenumber" + i,i);
  15.       i += 1;
  16.    }
  17.    if(dbCount == currentGameCount)
  18.    {
  19.       setProperty("itemBar" + lastGameBox, _alpha, 10);
  20.    }
  21.    setProperty("itemBar1", _alpha, 20);
  22.    theCurrentGame = arGamesDBIndex[0];
  23.    numitems = arGamesDBSlice.length;
  24.    num_Games = numitems;
  25.    lastButton = 1;
  26.    topDB = 1;
  27.    dbCount = 1;
  28.    currentGameCount = 1;
  29.    lastGameBox = 1;
  30.    gotoAndPlay(13);
  31. }
  32.